package com.yanqu.road.logic.xlogic.rank.user.entiety;

import com.yanqu.road.pb.player.PlayerProto;

public class XUserRankChangeParam {

    // 同步到 跨服/跨地区
    private boolean needSync = false;

    // 使用增量数据
    private boolean updateBaseInfo = false;
    private PlayerProto.PlayerBaseTempMsg baseInfoMsg = null;

    public XUserRankChangeParam(boolean needSync) {
        this.needSync = needSync;
    }

    public XUserRankChangeParam(boolean needSync, boolean updateBaseInfo, PlayerProto.PlayerBaseTempMsg baseInfoMsg) {
        this.needSync = needSync;
        this.updateBaseInfo = updateBaseInfo;
        this.baseInfoMsg = baseInfoMsg;
    }

    public boolean isNeedSync() {
        return needSync;
    }

    public void setNeedSync(boolean needSync) {
        this.needSync = needSync;
    }

    public boolean isUpdateBaseInfo() {
        return updateBaseInfo;
    }

    public void setUpdateBaseInfo(boolean updateBaseInfo) {
        this.updateBaseInfo = updateBaseInfo;
    }

    public PlayerProto.PlayerBaseTempMsg getBaseInfoMsg() {
        return baseInfoMsg;
    }

    public void setBaseInfoMsg(PlayerProto.PlayerBaseTempMsg baseInfoMsg) {
        this.baseInfoMsg = baseInfoMsg;
    }
}
